package engine.network.hostSide.mp;

import java.awt.Point;

import engine.network.hostSide.abstractClasses.PositionDispatcher;
import graphicUserInterface.elements.PositionListener;

public class HINBLocalPlayer implements PositionDispatcher{
	/* *********************************************************
	 * Attributes
	 * ********************************************************* */
	private HINBPlayer _player;
	
	/* *********************************************************
	 * Constructor(s)
	 * ********************************************************* */
	public HINBLocalPlayer() {
		_player = new HINBPlayer();
	}
	
	/* *********************************************************
	 * Instance Methods
	 * ********************************************************* */
	public void setNewPoint(Point p){
		_player.setNewPoint(p);
	}

	public Point getPoint() {
		return _player.getPoint();
	}

	@Override
	public void attach(PositionListener up) {
		_player.attach(up);
	}

	@Override
	public void detach(PositionListener up) {
		_player.detach(up);
	}
}
